﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ConsultarClientes.aspx.cs" Inherits="Presentacion.ConsultarClientes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 140px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Consultar Clientes</h1>
    <br />
    <br />
    <table>
        <tr>
            <td>
            </td>
            <td class="style1">
                Filtros</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                Legajo:
            </td>
            <td>
                <asp:TextBox ID="txtLegajo" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                Nombre:</td>
            <td>
                <asp:TextBox ID="txtNombreCliente" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                Apellido:</td>
            <td>
                <asp:TextBox ID="txtApellidoCliente" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                Tipo de documento:</td>
            <td>
                <asp:DropDownList ID="ddlTipoDocumento" runat="server"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
                Número Documento:</td>
            <td>
                <asp:TextBox ID="txtNroDocumento" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
            </td>
            <td>
                <asp:Button ID="btnFiltrar" runat="server" Text="Filtrar" OnClick="btnFiltrar_Click"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style1">
            </td>
            <td>
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView ID="grdClientes" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron datos" ShowHeaderWhenEmpty="True" style="margin-top: 0px" ShowFooter="True" OnSelectedIndexChanged="grdClientes_SelectedIndexChanged" AllowPaging="True" OnPageIndexChanging="grdClientes_PageIndexChanging" PageSize="5" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" AllowSorting="True" OnSorting="grdClientes_Sorting">        
        <Columns>
            <asp:BoundField HeaderText="Legajo" DataField="idCliente" SortExpression="idCliente" />
            <asp:BoundField HeaderText="Nombre" DataField="nombre" SortExpression="nombre" />
            <asp:BoundField HeaderText="Apellido" DataField="apellido" SortExpression="apellido" />
            <asp:BoundField HeaderText="Tipo Documento" DataField="TipoDocumento" />
            <asp:BoundField HeaderText="Nro Documento" DataField="nroDocumento" SortExpression="nroDocumento" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#487575" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#275353" />
    </asp:GridView>
    <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="lblMensajeError" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
